﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Linq;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using ResponseGeneratorWFConsoleApp;

static class InquiryState
{
    public static InquiryDOO.Inquiry inquiry = new InquiryDOO.Inquiry();
}

namespace InquiryRequestActivities
{
    public partial class CollectInquiryRequest : SequenceActivity
    {


        private void InvokeDialog_ExecuteCode(object sender, EventArgs e)
        {
            CollectRequest cr = new CollectRequest();
            cr.ShowDialog();
            InquiryState.inquiry.inquiryQuestion = cr.Inquiry_Text;
            InquiryState.inquiry.WebAddress = cr.WebsiteAddress;
        }
    }
}
